package app.model;

import java.util.Date;

import com.agile.jfinal.model.CoreModel;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* 数据库表对应的Model类，继承了CoreModel
* @author qiutian 
* @date 2013-12-19
*/
@TableBind(tableName="app_basedoc",pkName="pk_basedoc") 
public class AppBasedoc extends CoreModel<AppBasedoc>{

	public static final AppBasedoc dao = new AppBasedoc();

	public static final String PK_BASEDOC = "pk_basedoc";   //主键
	public static final String VCODE = "vcode";   //编码
	public static final String VNAME = "vname";   //名称
	public static final String ICON = "icon";   //app桌面图标
	public static final String PIC_WELCOME = "pic_welcome";   //欢迎界面图片
	public static final String APP_URL = "app_url";   //app打开后的链接
	public static final String DOWNLOAD_URL = "download_url";   //app下载地址
	public static final String VERSION = "version";   //app版本号
	public static final String CREATE_BY = "create_by";   //制单人
	public static final String CREATE_TIME = "create_time";   //制单时间
	public static final String APP_TYPE = "app_type";   //0-自定义 1-模板类型 
	public static final String IS_SEAL = "is_seal";   //0-可用 1-封存
	public static final String IS_UPDATE = "is_update";   //是否已更新 0-否 1-是
	public static final String TS = "ts";   //时间戳
	public static final String DR = "dr";   //删除标记
	public static final String COLUMN_1 = "column_1";   //预留字段1
	public static final String COLUMN_2 = "column_2";   //预留字段2
	public static final String COLUMN_3 = "column_3";   //预留字段3
	public static final String COLUMN_4 = "column_4";   //预留字段4
	public static final String COLUMN_5 = "column_5";   //预留字段5


	/**数据库中的表名*/
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return "app_basedoc";
	}


	/**主键字段名称*/
	@Override
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return PK_BASEDOC;
	}


}
